s = 'caf诶'

cafe = bytes(s,encoding='utf8')
print(cafe[-1:])
cafe_arr = bytearray(cafe)
print(cafe_arr[-1:])